package com.kma.summer2012.client.view.mainPage;

import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.HTMLPanel;
import com.kma.summer2012.client.presenters.mainPage.ClosedRequestsPresenter;
import com.kma.summer2012.client.presenters.mainPage.widgets.MainTablePresenter;
import com.kma.summer2012.client.view.mainPage.widgets.MainTable;

/**
 * Created with IntelliJ IDEA.
 * User: EUGENE
 * Date: 3/2/13
 * Time: 11:42 PM
 * To change this template use File | Settings | File Templates.
 */
public class ClosedRequests extends Composite implements ClosedRequestsPresenter.Display {

    interface ClosedRequestsUiBinder extends UiBinder<HTMLPanel, ClosedRequests> {
    }

    private static ClosedRequestsUiBinder ourUiBinder = GWT.create(ClosedRequestsUiBinder.class);

    @UiField
    protected MainTable table;

    public ClosedRequests() {
        HTMLPanel rootElement = ourUiBinder.createAndBindUi(this);
        this.initWidget(rootElement);

        (new MainTablePresenter(this.table)).showEdit = false;


    }

    @Override
    public Integer getTableID() {
        return this.table.getTableID();
    }

}